SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE PROCEDURE [dbo].[UserInfoIsExist]
	@Login VARBINARY(MAX)
AS
BEGIN
	SELECT COUNT(*) 
	FROM UserInfo
	WHERE Login = @Login AND Deleted = 0
END

GO
